package com.yc.bdw.Activity;

import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.yc.bdw.R;

import org.kymjs.kjframe.KJActivity;
import org.kymjs.kjframe.ui.BindView;

public class OrderSubmitActivity extends KJActivity {
    @BindView(id = R.id.order_submit_back, click = true)
    private ImageView backBtn;
    @BindView(id = R.id.order_submit_submit, click = true)
    private ImageView submitBtn;
    @BindView(id = R.id.order_submit_num)
    private TextView numText;
    @BindView(id = R.id.order_submit_price)
    private TextView priceText;
    @BindView(id = R.id.order_submit_payment)
    private TextView paymentText;

    private String number;
    private String price;
    private String payment;

    @Override
    public void setRootView() {
        setContentView(R.layout.activity_order_submit);
    }

    @Override
    public void initData() {
        super.initData();

        Bundle bundle = this.getIntent().getExtras();
        number = bundle.getString("number");
        price = bundle.getString("price");
        payment = bundle.getString("payment");
    }

    @Override
    public void initWidget() {
        super.initWidget();

        numText.setText(number);
        priceText.setText(price);
        paymentText.setText(payment);
    }

    @Override
    public void widgetClick(View v) {
        super.widgetClick(v);
        switch (v.getId()) {
            case R.id.order_submit_back:
                finish();
                break;
            case R.id.order_submit_submit:
                break;
        }
    }
}
